puzzle your brains out

vt.绞脑汁,苦干